import { Module } from '@nestjs/common';

import { RouterModule } from '@nestjs/core';

import { CategoryModule } from './category/category.module';
import { ProductModule } from './product/product.module';
import { CommentModule } from './comment/comment.module';

const modules = [CategoryModule, ProductModule, CommentModule];

@Module({
  imports: [
    ...modules,
    RouterModule.register([
      {
        path: 'business',
        module: BusinessModule,
        children: [...modules],
      },
    ]),
  ],
  exports: [...modules],
})
export class BusinessModule {}
